package com.ruoyi.waterPrice.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.business.waterPrice.WiFeemodeY;
import com.ruoyi.waterPrice.mapper.WiFeemodeYMapper;
import com.ruoyi.waterPrice.service.IWiFeemodeYService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 年度水费计收方式定义Service业务层处理
 * 
 * @author ps
 * @date 2023-02-16
 */
@Service
public class WiFeemodeYServiceImpl implements IWiFeemodeYService
{
    @Autowired
    private WiFeemodeYMapper wiFeemodeYMapper;

    /**
     * 查询年度水费计收方式定义
     * 
     * @param id 年度水费计收方式定义主键
     * @return 年度水费计收方式定义
     */
    @Override
    public WiFeemodeY selectWiFeemodeYByModeYr(String id)
    {
        return wiFeemodeYMapper.selectWiFeemodeYByModeYr(id);
    }

    /**
     * 查询年度水费计收方式定义列表
     * 
     * @param wiFeemodeY 年度水费计收方式定义
     * @return 年度水费计收方式定义
     */
    @Override
    public List<WiFeemodeY> selectWiFeemodeYList(WiFeemodeY wiFeemodeY)
    {
        return wiFeemodeYMapper.selectWiFeemodeYList(wiFeemodeY);
    }

    /**
     * 新增年度水费计收方式定义
     * 
     * @param wiFeemodeY 年度水费计收方式定义
     * @return 结果
     */
    @Override
    public int insertWiFeemodeY(WiFeemodeY wiFeemodeY)
    {
        return wiFeemodeYMapper.insertWiFeemodeY(wiFeemodeY);
    }

    /**
     * 修改年度水费计收方式定义
     * 
     * @param wiFeemodeY 年度水费计收方式定义
     * @return 结果
     */
    @Override
    public int updateWiFeemodeY(WiFeemodeY wiFeemodeY)
    {
        return wiFeemodeYMapper.updateWiFeemodeY(wiFeemodeY);
    }

    /**
     * 批量删除年度水费计收方式定义
     * 
     * @param ids 需要删除的年度水费计收方式定义主键
     * @return 结果
     */
    @Override
    public int deleteWiFeemodeYByModeYrs(String[] ids)
    {
        return wiFeemodeYMapper.deleteWiFeemodeYByModeYrs(ids);
    }

    /**
     * 删除年度水费计收方式定义信息
     * 
     * @param modeYr 年度水费计收方式定义主键
     * @return 结果
     */
    @Override
    public int deleteWiFeemodeYByModeYr(String modeYr)
    {
        return wiFeemodeYMapper.deleteWiFeemodeYByModeYr(modeYr);
    }
}
